# Tanım: Equinox Desktop Environment için bileşen oluşturma kitaplığı
# URL: http://equinox-project.org/
# Paketçi: Cihan_Alkan 
# Gerekler: fltk1 dbus libstdc++5 python3 ftjam

isim=edelib
surum=2.1
devir=1
_watch="http://equinox-project.org/wiki/Download"

kaynak=(http://downloads.sourceforge.net/project/ede/$isim/$surum/$isim-$surum.tar.gz
        edelib.3592.patch
        https://raw.githubusercontent.com/edeproject/edelib/master/edelib/ts/scheme.h)

derle() {
  cd ${isim}-${surum}
    patch -Np1 -i "$SRC/edelib.3592.patch"
    cp "$SRC/scheme.h" "$SRC/edelib-$surum/edelib/ts"

    ./autogen.sh
    CFLAGS="-mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC"
    CXXFLAGS="-mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC"
    MAKEFLAGS="-j1"
    ./configure --prefix=/usr
    jam

    install -d "$PKG"/usr/{bin,lib}
    # errors for no good reason?
    jam prefix="$PKG/usr" install || true

}

